using Microsoft.EntityFrameworkCore;

namespace StudentManager.Models;

public class StudentDbContext : DbContext
{
    public DbSet<Student> Students {get;set;} = null!;

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        base.OnConfiguring(optionsBuilder);

        var onString = $"server=.;database=Db0107;uid=sa;password=123456;TrustServerCertificate=True";

        optionsBuilder.UseSqlServer(onString);
    }
}